.class public Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;
.super Lcom/burstly/lib/component/networkcomponent/AbstractAdaptorFactory;
.source "InmobiAdaptorFactory.java"


# static fields
.field private static final FULL_CLASS_NAME:Ljava/lang/String; = "com.inmobi.androidsdk.IMAdView"

.field private static final INMOBI_MANDATORY_ACTIVITIES:Ljava/util/List; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static final INMOBI_MANDATORY_PERMISSIONS:Ljava/util/List; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static final INMOBI_OPTIONAL_PERMISSIONS:Ljava/util/List; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static final NETWORK_NAME:Ljava/lang/String; = "inmobi"


# direct methods
.method static constructor <clinit>()V
    .locals 5

    .prologue
    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 49
    new-array v0, v3, [Ljava/lang/String;

    const-string v1, "com.inmobi.androidsdk.IMBrowserActivity"

    aput-object v1, v0, v2

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;->INMOBI_MANDATORY_ACTIVITIES:Ljava/util/List;

    .line 55
    new-array v0, v4, [Ljava/lang/String;

    const-string v1, "android.permission.INTERNET"

    aput-object v1, v0, v2

    const-string v1, "android.permission.ACCESS_NETWORK_STATE"

    aput-object v1, v0, v3

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;->INMOBI_MANDATORY_PERMISSIONS:Ljava/util/List;

    .line 61
    const/4 v0, 0x7

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "android.permission.ACCESS_COARSE_LOCATION"

    aput-object v1, v0, v2

    const-string v1, "android.permission.ACCESS_FINE_LOCATION"

    aput-object v1, v0, v3

    const-string v1, "android.permission.CALL_PHONE"

    aput-object v1, v0, v4

    const/4 v1, 0x3

    const-string v2, "android.permission.ACCESS_WIFI_STATE"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "android.permission.VIBRATE"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "android.permission.RECORD_AUDIO"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    const-string v2, "android.permission.WRITE_EXTERNAL_STORAGE"

    aput-object v2, v0, v1

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;->INMOBI_OPTIONAL_PERMISSIONS:Ljava/util/List;

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    .line 70
    const-string v0, "com.inmobi.androidsdk.IMAdView"

    const-class v1, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/AbstractAdaptorFactory;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 71
    return-void
.end method


# virtual methods
.method protected createInstance(Landroid/content/Context;Ljava/lang/String;)Lcom/burstly/lib/component/IBurstlyAdaptor;
    .locals 1
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 75
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;

    invoke-direct {v0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    return-object v0
.end method

.method public validateManifest()Lcom/burstly/lib/util/ManifestValidator$ValidationResults;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/content/pm/PackageManager$NameNotFoundException;
        }
    .end annotation

    .prologue
    .line 80
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;->INMOBI_MANDATORY_ACTIVITIES:Ljava/util/List;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;->INMOBI_MANDATORY_PERMISSIONS:Ljava/util/List;

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptorFactory;->INMOBI_OPTIONAL_PERMISSIONS:Ljava/util/List;

    invoke-static {v1, v2, v3}, Lcom/burstly/lib/util/ManifestValidator;->customValidate(Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lcom/burstly/lib/util/ManifestValidator$ValidationResults;

    move-result-object v0

    .line 82
    .local v0, results:Lcom/burstly/lib/util/ManifestValidator$ValidationResults;
    const-string v1, "inmobi"

    invoke-virtual {v0, v1}, Lcom/burstly/lib/util/ManifestValidator$ValidationResults;->setNetworkName(Ljava/lang/String;)V

    .line 83
    return-object v0
.end method
